@page "/"
@inject NavigationManager NavigationManager
@inject IJSRuntime JS

    <ChatBox IsVisible="isLoggedIn" IsConnected="isLoggedIn" />

    <LoginPage OnLoginSuccess="OnLoginSuccess" />


@code {
    private bool isLoggedIn = false;

    private async Task OnLoginSuccess(LoginEventArgs e)
    {
        isLoggedIn = true;
    }
}